﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BKH.BLL
{
    class PositionBUO:IBUO<tbl_Position>
    {
        HospitalDBDataContext context = new HospitalDBDataContext();
        public bool Insert(tbl_Position obj)
        {
            try
            {
                context.tbl_Positions.InsertOnSubmit(obj);
                context.SubmitChanges();
                return true;

            }
            catch (Exception)
            {

                return false;
            }
        }

        public bool Delete(int id)
        {
            throw new NotImplementedException();
        }

        public bool Delete(tbl_Position obj)
        {
            throw new NotImplementedException();
        }

        public List<tbl_Position> GetAll()
        {
            return context.tbl_Positions.ToList<tbl_Position>();
        }

        public tbl_Position GetSingle(int id)
        {
            throw new NotImplementedException();
        }

        public bool Update(int id, tbl_Position obj)
        {
            throw new NotImplementedException();
        }
    }
}
